Callers are not using them anyway. Update all callers.
GdkSurface *surface,
GdkCursor *cursor);
static void gdk_broadway_device_query_state (GdkDevice *device,
- GdkSurface *surface,
- GdkSurface **child_surface,
- gdouble *root_x,
- gdouble *root_y,
- gdouble *win_x,
- gdouble *win_y,
+ GdkSurface *surface,
+ GdkSurface **child_surface,
+ double *win_x,
+ double *win_y,
GdkModifierType *mask);
static GdkGrabStatus gdk_broadway_device_grab (GdkDevice *device,
GdkSurface *surface,
}
static void
-gdk_broadway_device_query_state (GdkDevice *device,
+gdk_broadway_device_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
- gdouble *root_x,
- gdouble *root_y,
- gdouble *win_x,
- gdouble *win_y,
- GdkModifierType *mask)
+ double *win_x,
+ double *win_y,
+ GdkModifierType *mask)
{
GdkDisplay *display;
GdkBroadwayDisplay *broadway_display;
&device_root_y,
&mask32);
- if (root_x)
- *root_x = device_root_x;
- if (root_y)
- *root_y = device_root_y;
if (win_x)
*win_x = device_root_x;
if (win_y)
{
GdkSurface *surface = NULL;
- gdk_broadway_device_query_state (device, NULL, &surface, NULL, NULL, win_x, win_y, mask);
+ gdk_broadway_device_query_state (device, NULL, &surface, win_x, win_y, mask);
return surface;
}
GDK_DEVICE_GET_CLASS (device)->query_state (device, surface,
&child,
- NULL, NULL,
x, y, mask);
return child != NULL;
}
g_return_if_fail (gdk_device_get_device_type (device) != GDK_DEVICE_TYPE_SLAVE ||
gdk_display_device_is_grabbed (gdk_device_get_display (device), device));
- _gdk_device_query_state (device, NULL, NULL, x, y, NULL, NULL, NULL);
+ _gdk_device_query_state (device, NULL, NULL, x, y, NULL);
}
/**
_gdk_device_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
- gdouble *root_x,
- gdouble *root_y,
gdouble *win_x,
gdouble *win_y,
GdkModifierType *mask)
GDK_DEVICE_GET_CLASS (device)->query_state (device,
surface,
child_surface,
- root_x,
- root_y,
win_x,
win_y,
mask);
void (* query_state) (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
- gdouble *root_x,
- gdouble *root_y,
gdouble *win_x,
gdouble *win_y,
GdkModifierType *mask);
void _gdk_device_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
- gdouble *root_x,
- gdouble *root_y,
gdouble *win_x,
gdouble *win_y,
GdkModifierType *mask);
gdk_wayland_device_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
- gdouble *root_x,
- gdouble *root_y,
gdouble *win_x,
gdouble *win_y,
GdkModifierType *mask)
{
GdkWaylandPointerData *pointer;
GList *children = NULL;
- int x_root, y_root;
if (surface == NULL)
children = gdk_wayland_display_get_toplevel_surfaces (gdk_device_get_display (device));
*win_x = pointer->surface_x;
if (win_y)
*win_y = pointer->surface_y;
-
- if (pointer->focus)
- {
- gdk_surface_get_root_coords (pointer->focus,
- pointer->surface_x,
- pointer->surface_y,
- &x_root, &y_root);
- }
- else
- {
- x_root = pointer->surface_x;
- y_root = pointer->surface_y;
- }
-
- if (root_x)
- *root_x = x_root;
- if (root_y)
- *root_y = y_root;
}
static void
GDK_DEVICE_GET_CLASS (device)->query_state (device, surface,
&child,
- NULL, NULL,
x, y, mask);
return_val = (child != NULL);
}
gdk_device_virtual_query_state (GdkDevice *device,
GdkSurface *window,
GdkSurface **child_window,
- gdouble *root_x,
- gdouble *root_y,
gdouble *win_x,
gdouble *win_y,
GdkModifierType *mask)
_gdk_device_query_state (virtual->active_device,
window, child_window,
- root_x, root_y,
win_x, win_y,
mask);
}
/* The state is not yet updated in the event, so we need
* to query it here.
*/
- _gdk_device_query_state (pointer, NULL, NULL, NULL, NULL, NULL, NULL, &state);
+ _gdk_device_query_state (pointer, NULL, NULL, NULL, NULL, &state);
if (dx != 0 || dy != 0)
{
static void gdk_x11_device_xi2_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
- gdouble *root_x,
- gdouble *root_y,
gdouble *win_x,
gdouble *win_y,
GdkModifierType *mask);
gdk_x11_device_xi2_query_state (device, surface,
NULL,
NULL, NULL,
- NULL, NULL,
mask);
}
gdk_x11_device_xi2_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
- gdouble *root_x,
- gdouble *root_y,
gdouble *win_x,
gdouble *win_y,
GdkModifierType *mask)
if (master)
_gdk_device_query_state (master, surface, child_surface,
- root_x, root_y, win_x, win_y, mask);
+ win_x, win_y, mask);
return;
}
if (child_surface)
*child_surface = gdk_x11_surface_lookup_for_display (display, xchild_window);
- if (root_x)
- *root_x = xroot_x / scale;
-
- if (root_y)
- *root_y = xroot_y / scale;
-
if (win_x)
*win_x = xwin_x / scale;
precache_target_list (drag);
- gdk_device_get_position (device, &px, &py);
+ _gdk_device_query_state (device, surface, NULL, &px, &py, NULL);
gdk_x11_surface_get_root_coords (surface,
round (px) + dx,
* to query it here. We could use XGetModifierMapping, but
* that would be overkill.
*/
- _gdk_device_query_state (pointer, NULL, NULL, NULL, NULL, NULL, NULL, &state);
+ _gdk_device_query_state (pointer, NULL, NULL, NULL, NULL, &state);
if (dx != 0 || dy != 0)
{
/*HIDPI: handle coords here?*/
GDK_DEVICE_GET_CLASS (device)->query_state (device, surface,
&child,
- NULL, NULL,
x, y, mask);
return child != NULL;
}